package com.dongfa.learn_0913;

import java.util.Scanner;

public class LearnCode1006 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数字");
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = 0;
        int max = Math.max(a, b);
        int min = Math.min(a, b);
        for (; min <= max; min++) {
            if (min % 3 == 0 & min % 5 == 0) {
                c++;
            }
        }
        System.out.println(c);
    }
}
